﻿<Window x:Class="ZSens.ConfigButton"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ConfigButton" Height="300" Width="300"
        ResizeMode="CanMinimize">
    <Grid>
        <ComboBox Name="joystick_cbox" HorizontalAlignment="Left" Height="22" Margin="19,24,0,0" VerticalAlignment="Top" Width="121" SelectedIndex="0" RenderTransformOrigin="-0.24,-2.136" IsEnabled="{Binding ElementName=rdbtn_joystick, Path=IsChecked}">
            <ComboBoxItem Content="Button0" />
            <ComboBoxItem Content="Button1" />
            <ComboBoxItem Content="Button2" />
            <ComboBoxItem Content="Button3" />
            <ComboBoxItem Content="Button4" />
            <ComboBoxItem Content="Button5" />
            <ComboBoxItem Content="Button6" />
        </ComboBox>
        <Button Content="Confirm" HorizontalAlignment="Left" Height="41" Margin="42,174,0,0" VerticalAlignment="Top" Width="88" Click="Button_Click_1"/>
        <Button Content="Cancel" HorizontalAlignment="Left" Height="41" Margin="165,174,0,0" VerticalAlignment="Top" Width="88" Click="Button_Click_2"/>
        <Label Content="Mapping"  HorizontalAlignment="Left" Height="28" Margin="42,128,0,0" VerticalAlignment="Top" Width="70"/>
        <TextBox Name="tex_box" MaxLength="20" IsReadOnly="True" HorizontalAlignment="Left" MinHeight="28" Margin="137,128,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" MinWidth="70" 
                IsEnabled="{Binding ElementName=rdbtn_keyboard, Path=IsChecked}"/>
        <RadioButton Name="rdbtn_keyboard" Content="Keyboard" GroupName="Option" HorizontalAlignment="Left" Height="19" Margin="175,24,0,0" VerticalAlignment="Top" Width="117"/>
        <RadioButton Name="rdbtn_joystick" Content="JoyStick" GroupName="Option" HorizontalAlignment="Left" Height="19" Margin="175,43,0,0" VerticalAlignment="Top" Width="117"/>
        <Label Content="Button Name" HorizontalAlignment="Left" Height="28" Margin="42,80,0,0" VerticalAlignment="Top" Width="88"/>
        <TextBox x:Name="buttonName" MaxLength="20" HorizontalAlignment="Left" MinHeight="28" Margin="137,75,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" MinWidth="70" />
    </Grid>
</Window>
